/*
 * Invocateur.h
 *
 *  Created on: 21 dec. 2012
 *      Author: guegan
 */

#ifndef _ROBOTCOMMANDEUR_H_INCLUDED_
#define _ROBOTCOMMANDEUR_H_INCLUDED_

#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include "Commande.h"
#include "Robot.h"

using namespace std;   

class Invocateur {
private:
	ifstream fichier;
	vector<string> args;
	vector<Commande*> commandes;
public:
	Invocateur(string chemin, Robot* bot);
	void analyser();
	void executer();
	string getArg(int i) { return args[i]; }
	void nextCommande();
};

#endif
